package com.example.api.feign;

import com.example.api.feign.fallback.UserFeignFallBack;
import com.example.common.entity.ResultDO;
import com.example.common.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author humeihua
 */
@FeignClient(value = "user",fallback = UserFeignFallBack.class)
public interface UserFeign {
    /**
     * @param id
     * @return
     */
    @RequestMapping(value = "/user/info",method = RequestMethod.POST)
    public ResultDO<User> getUserInfo(@RequestParam(value = "id") Integer id);

}
